package zouran.shounewsspringboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

/**
 * @author zouran
 * createDate：2023/5/31  17:26
 */
@SuppressWarnings("SpringJavaInjectionPointsAutowiringInspection")
@Component
@Data
@NoArgsConstructor
@AllArgsConstructor
public class News {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String img;
    private String title;
    private String author;
    private LocalDateTime time;
    private String link;
}
